Skip to content

Auto-upload built assets as release attachments on version tag push#1287

Merged
jbtronics merged 2 commits into
masterfrom
copilot/automate-release-attachment-upload
Mar 4, 2026
Merged

Auto-upload built assets as release attachments on version tag push#1287
jbtronics merged 2 commits into
masterfrom
copilot/automate-release-attachment-upload

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

The "Build assets artifact" workflow only uploaded built assets as ephemeral GitHub Actions artifacts, with no automatic attachment to GitHub releases on version tags.

Changes

  • New triggers: Workflow now runs on v*.*.* and v*.*.*-** tag pushes (matching the Docker build workflow pattern)
  • Scoped permissions: Workflow-level contents permission stays read; added contents: write at the job level to limit blast radius for branch/PR runs
  • Release upload step: Conditional step uploads both zip files as release assets when triggered by a tag:
- name: Upload assets as release attachment
  if: startsWith(github.ref, 'refs/tags/')
  run: |
    gh release upload "${{ github.ref_name }}" /tmp/partdb_assets.zip /tmp/partdb_with_assets.zip --clobber
  env:
    GH_TOKEN: ${{ github.token }}

--clobber allows re-running the workflow without manual cleanup if assets were already uploaded.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automatic upload of release attachments for build assets Auto-upload built assets as release attachments on version tag push Mar 4, 2026
@jbtronics jbtronics marked this pull request as ready for review March 4, 2026 23:04
@jbtronics jbtronics merged commit d24a50a into master Mar 4, 2026
23 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.41%. Comparing base (32a666f) to head (9053a1d).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1287      +/-   ##
============================================
- Coverage     55.42%   55.41%   -0.01%     
  Complexity     8266     8266              
============================================
  Files           610      610              
  Lines         26513    26513              
============================================
- Hits          14694    14692       -2     
- Misses        11819    11821       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jbtronics jbtronics deleted the copilot/automate-release-attachment-upload branch March 5, 2026 00:17
mkne pushed a commit to mkne/Part-DB-server that referenced this pull request Mar 5, 2026
…art-DB#1287)

* Initial plan

* Upload built assets as release attachments on version tag push

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants